package com.qf.dao;

import com.qf.pojo.Catalog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CatalogDao {
    public List<Catalog> findAll();
    public List<Catalog> findByName(@Param("name") String name);
    public List<Catalog> findByParent(@Param("id") Integer id);
    public List<Catalog> findByLevel(@Param("id") Integer id);
    public int add(Catalog catalog);
    public int update(Catalog catalog);
    public int delete(@Param("id") Integer id);
}
